cmake_minimum_required(VERSION 3.16)

project(debug_log)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} CURRENT_SRC)
set(ALL_SRC "${CURRENT_SRC};${PROTO_SRC}")

# 搜索头文件
include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}
)

# 编译链接的文件夹
link_directories(

)

# 编译生成库
# STATIC 静态库
add_library(${PROJECT_NAME} STATIC ${ALL_SRC})

# 编译链接库
target_link_libraries(${PROJECT_NAME}
    pthread
)

# 编译复制log.h到目标目录下
install(FILES
    log.h
    DESTINATION ${INNER_INCLUDE_DIR}/debug_log
)